<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: lsb_embedding_engine.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">lsb_embedding_engine.h</div>  </div>
</div>
<div class="contents">
<a href="lsb__embedding__engine_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __LSB_EMBEDDING_ENGINE_H__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __LSB_EMBEDDING_ENGINE_H__ 1</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &quot;<a class="code" href="embedding__engine_8h.html">embedding_engine.h</a>&quot;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;<a class="code" href="types_8h.html">types.h</a>&quot;</span>
<a name="l00007"></a>00007 
<a name="l00012"></a><a class="code" href="classCLSBEmbeddingEngine.html">00012</a> <span class="keyword">class </span><a class="code" href="classCLSBEmbeddingEngine.html" title="implementation of the LSB embedding algorithm.">CLSBEmbeddingEngine</a> : <span class="keyword">public</span> <a class="code" href="classIEmbeddingEngine.html" title="Embedding engine base class.">IEmbeddingEngine</a>
<a name="l00013"></a>00013 {
<a name="l00014"></a>00014 <span class="keyword">public</span>:
<a name="l00015"></a>00015 
<a name="l00019"></a>00019         <a class="code" href="classCLSBEmbeddingEngine.html#a240c65a1595a74a98dca9893b1346453">CLSBEmbeddingEngine</a>(<a class="code" href="classIBitSource.html" title="abstract steg payload bit source">IBitSource</a>* pBitSource);
<a name="l00020"></a>00020         <span class="keyword">virtual</span> <a class="code" href="classCLSBEmbeddingEngine.html#aaa8f7c2df92f62dc2ce5a158d2a68f1d">~CLSBEmbeddingEngine</a>();
<a name="l00021"></a>00021 
<a name="l00022"></a>00022         <span class="keyword">virtual</span> std::string <a class="code" href="classCLSBEmbeddingEngine.html#a81bd5d82390a7870fefbfdde94cd474b" title="get the abbreviation for the properties reader">getIniSectionName</a>() <span class="keyword">const</span>;
<a name="l00023"></a>00023 
<a name="l00024"></a>00024         <span class="comment">// samples of types s8, u8, s16 and u16 are supported by the lsb embedding</span>
<a name="l00025"></a>00025         <span class="comment">// engine</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCLSBEmbeddingEngine.html#a4d508780f5f727e820baa98a5da1fa97" title="hook call for glue code">embedIntoSamples</a>(int8_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak);
<a name="l00028"></a>00028         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCLSBEmbeddingEngine.html#a4d508780f5f727e820baa98a5da1fa97" title="hook call for glue code">embedIntoSamples</a>(uint8_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak);
<a name="l00029"></a>00029         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCLSBEmbeddingEngine.html#a4d508780f5f727e820baa98a5da1fa97" title="hook call for glue code">embedIntoSamples</a>(int16_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak);
<a name="l00030"></a>00030         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCLSBEmbeddingEngine.html#a4d508780f5f727e820baa98a5da1fa97" title="hook call for glue code">embedIntoSamples</a>(uint16_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak);
<a name="l00031"></a><a class="code" href="classCLSBEmbeddingEngine.html#a4108f20e47567007441ba8943f5e4b1b">00031</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCLSBEmbeddingEngine.html#a4108f20e47567007441ba8943f5e4b1b">embedIntoSamples</a>(<span class="keywordtype">double</span>* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak) { <span class="keywordflow">return</span> -1; }
<a name="l00032"></a>00032 
<a name="l00033"></a>00033         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCLSBEmbeddingEngine.html#acaebe471ecb2ca61fefa93c623effcee" title="hook call for glue code">extractFromSamples</a>(int8_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer);
<a name="l00034"></a>00034         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCLSBEmbeddingEngine.html#acaebe471ecb2ca61fefa93c623effcee" title="hook call for glue code">extractFromSamples</a>(uint8_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer);
<a name="l00035"></a>00035         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCLSBEmbeddingEngine.html#acaebe471ecb2ca61fefa93c623effcee" title="hook call for glue code">extractFromSamples</a>(int16_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer);
<a name="l00036"></a>00036         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCLSBEmbeddingEngine.html#acaebe471ecb2ca61fefa93c623effcee" title="hook call for glue code">extractFromSamples</a>(uint16_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer);
<a name="l00037"></a><a class="code" href="classCLSBEmbeddingEngine.html#afd9e25289d4571a53e55ef0c8648eb09">00037</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCLSBEmbeddingEngine.html#afd9e25289d4571a53e55ef0c8648eb09">extractFromSamples</a>(<span class="keywordtype">double</span>* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer) { <span class="keywordflow">return</span> -1; }
<a name="l00038"></a>00038 
<a name="l00039"></a><a class="code" href="classCLSBEmbeddingEngine.html#a0890214dd225aa09ba755459d686c2ce">00039</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCLSBEmbeddingEngine.html#a0890214dd225aa09ba755459d686c2ce">shutdown</a>() { }
<a name="l00040"></a>00040 
<a name="l00041"></a><a class="code" href="classCLSBEmbeddingEngine.html#aca6150436ba357982b39ab7a56e6b0b7">00041</a>         <span class="keyword">inline</span> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCLSBEmbeddingEngine.html#aca6150436ba357982b39ab7a56e6b0b7">changeSettings</a>() { <span class="keywordflow">return</span> 0; }
<a name="l00042"></a><a class="code" href="classCLSBEmbeddingEngine.html#a2e474f9ad7431541adc5d810e9d800ff">00042</a>         <span class="keyword">inline</span> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCLSBEmbeddingEngine.html#a2e474f9ad7431541adc5d810e9d800ff" title="determine number of processible samples">getNumRequiredSamples</a>() { <span class="keywordflow">return</span> <a class="code" href="classCLSBEmbeddingEngine.html#a8ff9a68b1f49a1f04d0e331adcae3040">sNumRequiredSamples</a>; }
<a name="l00043"></a><a class="code" href="classCLSBEmbeddingEngine.html#a882686345156024eea079420bc780345">00043</a>         <span class="keyword">inline</span> <span class="keyword">virtual</span> <a class="code" href="namespaceNAudioFormats.html#a0f5b4d2b68d4ba2b34bac333d4f5f808">NAudioFormats::ESamplesFormat</a> <a class="code" href="classCLSBEmbeddingEngine.html#a882686345156024eea079420bc780345" title="determine whether samples should be converted to double before handed over to an embedding engine...">getSamplesFormat</a>() { <span class="keywordflow">return</span> <a class="code" href="classCLSBEmbeddingEngine.html#a5a215f24725fb16672a28cf322318483">sSamplesFormat</a>; }
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="keyword">protected</span>:
<a name="l00046"></a><a class="code" href="classCLSBEmbeddingEngine.html#a8ff9a68b1f49a1f04d0e331adcae3040">00046</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classCLSBEmbeddingEngine.html#a8ff9a68b1f49a1f04d0e331adcae3040">sNumRequiredSamples</a>;
<a name="l00047"></a><a class="code" href="classCLSBEmbeddingEngine.html#a5a215f24725fb16672a28cf322318483">00047</a>         <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="namespaceNAudioFormats.html#a0f5b4d2b68d4ba2b34bac333d4f5f808">NAudioFormats::ESamplesFormat</a> <a class="code" href="classCLSBEmbeddingEngine.html#a5a215f24725fb16672a28cf322318483">sSamplesFormat</a>;
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="keyword">private</span>:
<a name="l00050"></a>00050         <a class="code" href="classCLSBEmbeddingEngine.html#a240c65a1595a74a98dca9893b1346453">CLSBEmbeddingEngine</a>(<span class="keyword">const</span> <a class="code" href="classCLSBEmbeddingEngine.html" title="implementation of the LSB embedding algorithm.">CLSBEmbeddingEngine</a>&amp; );
<a name="l00051"></a>00051         <a class="code" href="classCLSBEmbeddingEngine.html" title="implementation of the LSB embedding algorithm.">CLSBEmbeddingEngine</a>&amp; <a class="code" href="classCLSBEmbeddingEngine.html#a9f72c2a67b247ee092e05975e94a2c6a">operator=</a>(<span class="keyword">const</span> <a class="code" href="classCLSBEmbeddingEngine.html" title="implementation of the LSB embedding algorithm.">CLSBEmbeddingEngine</a>&amp; );
<a name="l00052"></a>00052 
<a name="l00053"></a><a class="code" href="classCLSBEmbeddingEngine.html#a8d13c922777588ab77c6079a76149f06">00053</a>         <span class="keyword">static</span> <span class="keyword">const</span> std::string <a class="code" href="classCLSBEmbeddingEngine.html#a8d13c922777588ab77c6079a76149f06">sIniSectionName</a>;
<a name="l00054"></a>00054 
<a name="l00055"></a><a class="code" href="classCLSBEmbeddingEngine.html#a35ee265095371d1ae8a90b16285390b5">00055</a>         <a class="code" href="classIBitSource.html" title="abstract steg payload bit source">IBitSource</a>* <a class="code" href="classCLSBEmbeddingEngine.html#a35ee265095371d1ae8a90b16285390b5">mBitSource</a>;
<a name="l00056"></a>00056 };
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="preprocessor">#endif // __LSB_EMBEDDING_ENGINE_H__</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:39 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
